package model

import "wh-1-backend/internal/model/entity"

type UserInfo struct {
	entity.AdminUser
	Roles []*entity.AdminRole `json:"roles"`
	Menus []*MenuTreeItem     `json:"menus"`
}

type UserRelRoleInfo struct {
	entity.AdminUserRelRole
	Role *entity.AdminRole
}

type UserListInput struct {
	UserCreateInput
	PageInput
}

type UserCreateInput struct {
	Nickname string
	Account  string
}

type UserRelRoleInput struct {
	UserId uint
	RoleId uint
}

type UserChangePwInput struct {
	OldPassword string
	Password    string
}
